// token设置工具型方法定义
// 获取token
function getLocal (key = 'token') {
  return window.localStorage.getItem(key)
}

// 保存token
function saveLocal (value, key = 'token') {
  window.localStorage.setItem(key, value)
}

// 删除token
function removeLocal (key = 'token') {
  window.localStorage.removeItem(key)
}

export { getLocal, saveLocal, removeLocal }
